package com.ruoyi.safety.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.safety.mapper.SubstationStatusDictMapper;
import com.ruoyi.safety.domain.SubstationStatusDict;
import com.ruoyi.safety.service.ISubstationStatusDictService;

/**
 * 分站运行状态字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-06
 */
@Service
public class SubstationStatusDictServiceImpl extends ServiceImpl<SubstationStatusDictMapper, SubstationStatusDict> implements ISubstationStatusDictService //修改
{
    @Autowired
    private SubstationStatusDictMapper substationStatusDictMapper;

    /**
     * 查询分站运行状态字典
     * 
     * @param id 分站运行状态字典主键
     * @return 分站运行状态字典
     */
    @Override
    public SubstationStatusDict selectSubstationStatusDictById(Long id)
    {
        return substationStatusDictMapper.selectSubstationStatusDictById(id);
    }

    /**
     * 查询分站运行状态字典列表
     * 
     * @param substationStatusDict 分站运行状态字典
     * @return 分站运行状态字典
     */
    @Override
    public List<SubstationStatusDict> selectSubstationStatusDictList(SubstationStatusDict substationStatusDict)
    {
        return substationStatusDictMapper.selectSubstationStatusDictList(substationStatusDict);
    }

    /**
     * 新增分站运行状态字典
     * 
     * @param substationStatusDict 分站运行状态字典
     * @return 结果
     */
    @Override
    public int insertSubstationStatusDict(SubstationStatusDict substationStatusDict)
    {
        return substationStatusDictMapper.insertSubstationStatusDict(substationStatusDict);
    }

    /**
     * 修改分站运行状态字典
     * 
     * @param substationStatusDict 分站运行状态字典
     * @return 结果
     */
    @Override
    public int updateSubstationStatusDict(SubstationStatusDict substationStatusDict)
    {
        return substationStatusDictMapper.updateSubstationStatusDict(substationStatusDict);
    }

    /**
     * 批量删除分站运行状态字典
     * 
     * @param ids 需要删除的分站运行状态字典主键
     * @return 结果
     */
    @Override
    public int deleteSubstationStatusDictByIds(Long[] ids)
    {
        return substationStatusDictMapper.deleteSubstationStatusDictByIds(ids);
    }

    /**
     * 删除分站运行状态字典信息
     * 
     * @param id 分站运行状态字典主键
     * @return 结果
     */
    @Override
    public int deleteSubstationStatusDictById(Long id)
    {
        return substationStatusDictMapper.deleteSubstationStatusDictById(id);
    }

    @Override
    public SubstationStatusDict selectSubstationStatusDictByCode(String datum) {
        return substationStatusDictMapper.selectSubstationStatusDictByCode(datum);
    }
}
